package org.cxmzxy.zhlxyj;

public class MyThread01 extends Thread{
    @Override
    public void run() {
        while (true){
            System.out.println("线程"+Thread.currentThread().getName()+":run方法正在运行");
            try {
                //让当前线程休眠1000毫秒
                Thread.sleep(1000);
            }catch (InterruptedException e){
                e.printStackTrace();
            }
        }
    }
}
